/***************************************************************************
 * Copyright (C) 2005 Global Biodiversity Information Facility Secretariat.
 * All Rights Reserved.
 *
 * The contents of this file are subject to the Mozilla Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 ***************************************************************************/
package org.gbif.agi.model.dto;

import org.gbif.agi.model.Genus;

/**
 * For search pages, it is advantageous to summarise some things 
 * @author trobertson
 */
public class GenusDetail {
	private Genus genus;
	private String fullScientificName;
	private String canonical;
	private String authorship;
	private boolean homonym = false;
	private boolean iczn  = false;
	private boolean icbn = false;
	private boolean icnb = false;
	private int nomenclatureStandingPercent;
	private int sourceQualifierPercent;
	private int completenessPercent;
	
	
	
	public Genus getGenus() {
		return genus;
	}
	public void setGenus(Genus genus) {
		this.genus = genus;
		this.fullScientificName = genus.getFullScientificName();
		this.canonical = genus.getCanonical();
		this.authorship = genus.getAuthorship();
	}
	public boolean isIczn() {
		return iczn;
	}
	public void setIczn(boolean iczn) {
		this.iczn = iczn;
	}
	public boolean isIcbn() {
		return icbn;
	}
	public void setIcbn(boolean icbn) {
		this.icbn = icbn;
	}
	public boolean isIcnb() {
		return icnb;
	}
	public void setIcnb(boolean icnb) {
		this.icnb = icnb;
	}
	public int getNomenclatureStandingPercent() {
		return nomenclatureStandingPercent;
	}
	public void setNomenclatureStandingPercent(int nomenclatureStandingPercent) {
		this.nomenclatureStandingPercent = nomenclatureStandingPercent;
	}
	public int getSourceQualifierPercent() {
		return sourceQualifierPercent;
	}
	public void setSourceQualifierPercent(int sourceQualifierPercent) {
		this.sourceQualifierPercent = sourceQualifierPercent;
	}
	public int getCompletenessPercent() {
		return completenessPercent;
	}
	public void setCompletenessPercent(int completenessPercent) {
		this.completenessPercent = completenessPercent;
	}
	public boolean isHomonym() {
		return homonym;
	}
	public void setHomonym(boolean homonym) {
		this.homonym = homonym;
	}
	public String getFullScientificName() {
		return fullScientificName;
	}
	public void setFullScientificName(String fullScientificName) {
		this.fullScientificName = fullScientificName;
	}
	public String getCanonical() {
		return canonical;
	}
	public void setCanonical(String canonical) {
		this.canonical = canonical;
	}
	public String getAuthorship() {
		return authorship;
	}
	public void setAuthorship(String authorship) {
		this.authorship = authorship;
	}
	
	
	
	
}
